﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EmployeeManager.Core;
using System.Data;
using System.Data.SqlClient;

namespace EmployeeManager.DataAccess
{
    class DangnhapAccess
    {
        public DangnhapAccess()
        {
        }
        dbConnection dbConn = new dbConnection();
        public DataTable kiemtraDangnhap(String user,String pass){
            DataTable dt= new DataTable();
            SqlParameter[] p= new SqlParameter[2];
            p[0]= new SqlParameter("@User", user);
            p[1] = new SqlParameter("@PassWord", pass);
            dt = dbConn.executeSelectProcedureQuery("select_NGUOIDUNG", p);
            return dt;
        }
    }
}
